import { createApp } from 'vue'
import { store } from './store'
import router from './router'
import { key } from './utils/useStore'

// global
import App from './App'

// style
import './assets/styles/index.less'

store.dispatch('permissionModule/getPermissionRoutes')
import '@/permission'

const app = createApp(App).use(router).use(store, key)

app.mount('#app')
